package com.hancher.gamelife2.diary;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import com.hancher.common.javautil.UuidUtil;

import java.util.List;

import lombok.Data;

/**
 * 描述 : 数据库实体类 <br/>
 * 时间 : 2023/12/2 11:48 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
@Entity(tableName = "diary", indices = {@Index(value = "uuid", unique = true)})
@Data
public class DiaryPO {

    @PrimaryKey
    Long id;
    String uuid = UuidUtil.getUuidNoLine();
    Long createTime = System.currentTimeMillis();
    Long updateTime = System.currentTimeMillis();
    Byte deleteflag = 0;

    //经纬度
    Double longitude;
    Double latitude;
    String address;

    //weather
    String weather;
    String temp;

    String content;
    String equipment;
    String title;
    String tag;
    String diaryBook;
    //json 图片位置（非地址）
    String images;
    String fsids;
    @Ignore
    List<String> imgUrls;
}
